<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=no, maximum-scale=1.0"/>
    <title>找回密码</title>
    <meta content="yes" name="apple-mobile-web-app-capable" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta content="telephone=no" name="format-detection" />
	<link rel="stylesheet" href="../assets/mobile/top.css">
	<link href="../assets/mobile/login.css" rel="stylesheet" type="text/css" />
    <link href="../assets/mobile/comm.css" rel="stylesheet" type="text/css" />
    <link href="../assets/mobile/member.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="../assets/agile/css/ratchet/css/ratchet.min.css">
    <link rel="stylesheet" href="../assets/agile/css/flat/flat.component.css">
    <link rel="stylesheet" href="../assets/agile/css/flat/iconline.css">
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/jquery.js"></script>
<script type="text/javascript" src="../script/jquery.form.js"></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/local.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
</head>
<body style="position:static !important;">
<div class="h5-1yyg-v11">
    
<!--通用顶部-->
<div id="ios-top-box">
    <div id="header" class="bar bar-nav">
    <div class="titlebar">
    <a href="javascript:appClose('findpwd',api);"><i class="iconfont iconline-arrow-left"></i></a>
    <h1 class="title">找回密码</h1>
    </div>
    </div>
</div>
<!--通用顶部结束-->

        <section style="margin-top:44px;">
		<form method="post" id="registerCon" action="" enctype="application/x-www-form-urlencoded">
        <div class="registerCon">
	        <ul>
    	        <li><input name="name" id="userMobile" type="text" placeholder="请输入您的手机号" class="rText"><s class="rs1"></s>
				</li>

<!--                <li ><input name="txtRegSN" type="text" id="txtCode" placeholder="验证码" class="rText" maxlength="4" pattern="[A-z0-9]{4}" required><s class="rs2"></s><img style="border: none;height: 34px;width: 80px;background-position: 0 -25px;position: absolute;top: 5px;right: 5px;" id="yzm_refresh" src=""/>
                </li>   --> 

                <li><input type="submit" name="submit" id="btnNext" class="nextBtn orgBtn orgBtns"  value="下一步"/></li>
				<li>
					<p>1.您若忘记注册时所用的手机号建议您重新注册账号， <a href="javascript:randomSwitchBtn('register',api);" class="blue Fb">立即注册</a></p>
					<p>2.如果您注册时使用的是邮箱注册，请使用电脑版找回密码</p>
					<p>3.若有任何疑问或需要帮助请您进入帮助中心，也可以点击在线客服进行咨询或拨打服务热线 <span style="color:#f60" class="cell"></span></p>
				</li>
            </ul>
        </div>
        </form>
        </section>

</div>

<script type="text/javascript">

    GetJPData(config.url+"/app.php?act=getsite",{key:'cell'},function(data){
        if(data['status']){
            $('.cell').text(data['data']);
        }
    });
    $('#registerCon').submit(function(){
        var userMobile = $('#userMobile').val();
        var txtCode = $('#txtCode').val();
        if (!userMobile) {
            $.PageDialog.fail('请正确填写手机号');
            return false;
        }
        
        if($('.noCheck').size() > 0){
            return false;
        }
        
        /**
         *else if(!txtCode || /^[a-zA-Z0-9]{4}$/.test(txtCode) == false){
            $.PageDialog.fail('请正确填写验证码');
            return false;
        } 
         */
        $('#btnNext').val('正在发送验证码').removeClass('orgBtns').addClass('orgBtns2').addClass("noCheck").addClass("grayBtn").unbind("click");
        $(this).ajaxSubmit({
            url : config.url+'/app.php?act=findpassword',
            dataType:'json',
            data : {
                submit : true,
                name : userMobile,
            },
            beforeSend : function(event){},
            success : function(data){
               if (data['status']) {
                   $('#btnNext').removeAttr('class').addClass('nextBtn orgBtn orgBtns').val('下一步');
                   localData.set('findmobilecheck',data['url']);
                   setTimeout(function(){
                       randomSwitchBtn('findmobilecheck',api);
                       appClose('findpwd',api);
                   },1200);
               }else{
                   $.PageDialog.fail('验证码发送失败');
               }; 
            }
        });
        
        return false;
    });
    
</script>
<style type="text/css">
.orgBtns{background: #c40c00 !important;}
.orgBtns2{background: #ddd !important;}
</style>
</body>
</html>